package com.wo.cloud.admin.util;


import com.wo.cloud.admin.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/5/24 15:28
 * Description: 认证工具类
 */
public class AuthenticationUtil {

    @Autowired
    private ISysUserService userService;

    // 获取登录用户信息
//    public static String getUserName() {
//        Authentication authentication = getAuthentication();
//        Object principal = authentication.getPrincipal();
//        return (String) principal;
//    }
//
//    // 获取认证信息
//    public static Authentication getAuthentication() {
//        return SecurityContextHolder.getContext().getAuthentication();
//    }
}
